#ifndef LINAVG_H
#define LINAVG_H
/**
 * The function approximates a serie of data using k*x+b linear 
 * approximation.
 * @param x - argument values
 * @param f - respective function values
 * @param M - length of both arrays
 * @param k,b - variables to put data to 
 */
void linavg(const double * x, const double * f, long M, double * k, double * b);

#endif
